package com.huige;

import jakarta.servlet.ServletContext;
import jakarta.servlet.ServletException;
import org.springframework.web.WebApplicationInitializer;
import org.springframework.web.context.WebApplicationContext;

/**
 * @Author 朱志辉
 * @Create 2024/7/18 上午4:02
 * @Version 1.0
 * Description:
 */
public class Main  implements WebApplicationInitializer {
    @Override
    public void onStartup(ServletContext servletContext) throws ServletException {

        //每当web项目启动，就会自动调用该接口的onStartup方法
        System.out.println("Main.onStartup");

        //ioc容器初始化
        //dispatcherServlet

    }
}
